import VueRouter from 'vue-router'
import HomeContainer from './components/tabbar/home.vue'
import MemberContainer from './components/tabbar/member.vue'
import ShopCarContainer from './components/tabbar/shopcar.vue'
import SearchContainer from './components/tabbar/search.vue'
var router = new VueRouter({
    routes: [//配置路由规则
        {path:'/',redirect:'/home'},
        {path:'/home',component:HomeContainer},
        {path:'/member',component:MemberContainer},
        {path:'/shopcar',component:ShopCarContainer},
        {path:'/search',component:SearchContainer}
    ],
    linkActiveClass:'mui-active' //覆盖默认的高亮路由的类 router-line-active
})


export default router